(function(){Nokia.extend(Nokia.dom,{domEl:function(a){return jQuery(a)[0]},append:function(b,a){b=Nokia.dom.domEl(b);a=Nokia.dom.domEl(a);b.appendChild(a)},prepend:function(b,a){b=Nokia.dom.domEl(b);a=Nokia.dom.domEl(a);b.insertBefore(a,b.firstChild)},insertBefore:function(b,a){b=Nokia.dom.domEl(b);a=Nokia.dom.domEl(a);b.parentNode.insertBefore(a,b)},insertAfter:function(b,a){b=Nokia.dom.domEl(b);a=Nokia.dom.domEl(a);b.parentNode.insertBefore(a,b.nextSibling)},remove:function(a){a=Nokia.dom.domEl(a);a.parentNode.removeChild(a)},wrap:function(b,a){Nokia.dom.insertBefore(a,b);Nokia.dom.append(b,a)},parseHTML:function(b){var a=document.createElement("div");if(b.jquery){return b}try{a.innerHTML=b;return jQuery(a.childNodes)}catch(c){}finally{a=null}}})})();